// 用户接口
import request from '@/utils/request'

// 注册接口
export const register = data => request.post('user/registered', data)

// 登录接口
export const login = data => request.post('user/login', data)

// 查看收藏列表接口
export const getCollect = () => request.get('user/favorites')

// 查看已发布房源接口
export const myRent = () => request.get('user/houses')
